$INCLUDE: 'C:\FG\FASTGRAF.FI'

      PROGRAM MAIN

      INTEGER*1 BUFFER[FAR](20000)
      INTEGER OLD_MODE
      INTEGER STATUS
      INTEGER FG_GETMODE, FG_SHOWPCX, FG_TESTMODE

      CALL FG_INITPM
      IF (FG_TESTMODE(19,1) .EQ. 0) THEN
         STOP 'This program requires a 320 x 200 MCGA graphics mode.'
      END IF
      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(19)
      CALL FG_IMAGEBUF(BUFFER,20000)
      STATUS = FG_SHOWPCX('CORAL.PCX'//CHAR(0),0)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
